/**
 * 频道列表
 */



/**
 * 获取所有频道列表
 */
import request from '@/utils/request'

export const getAllChannels = ()=>{
    return request({
        url:"/app/v1_0/channels",
        method:"GET"
    })
}

/**
 * 储存列表
 */

export const addUerChannel = data=>{
    return request({
        url:"/app/v1_0/user/channels",
        method:'PATCH',
        data
    })
}

/**
 * 删除指定用户频道
 */
export const deleteUserChannel = channelId=>{
    return request({
        url:`/app/v1_0/user/channels/${channelId}`,
        method:'DELETE'
    })
}